import React, { Component } from 'react';
import './Loading.scss';
import { ActivityIndicator } from 'antd-mobile';

class Loading extends Component {
  render() {
    const { loading } = this.props;
    return (
      <div>
        <ActivityIndicator
          toast
          text="Loading..."
          animating={loading}
        />
      </div>
    );
  }
}

export default Loading;
